package com.czkt.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售订单明细对象 erp_order_line
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class ErpOrderLine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String orderCode;

    /** 商品条码 */
    @Excel(name = "商品条码")
    private String productCode;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long productNum;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String productAttr;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private String productUnit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal productPrice;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxRate;

    /** 税额 */
    @Excel(name = "税额")
    private BigDecimal taxAmout;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setProductNum(Long productNum) 
    {
        this.productNum = productNum;
    }

    public Long getProductNum() 
    {
        return productNum;
    }
    public void setProductAttr(String productAttr) 
    {
        this.productAttr = productAttr;
    }

    public String getProductAttr() 
    {
        return productAttr;
    }
    public void setProductUnit(String productUnit) 
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit() 
    {
        return productUnit;
    }
    public void setProductPrice(BigDecimal productPrice) 
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() 
    {
        return productPrice;
    }
    public void setTaxRate(BigDecimal taxRate) 
    {
        this.taxRate = taxRate;
    }

    public BigDecimal getTaxRate() 
    {
        return taxRate;
    }
    public void setTaxAmout(BigDecimal taxAmout) 
    {
        this.taxAmout = taxAmout;
    }

    public BigDecimal getTaxAmout() 
    {
        return taxAmout;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderCode", getOrderCode())
            .append("productCode", getProductCode())
            .append("productNum", getProductNum())
            .append("productAttr", getProductAttr())
            .append("productUnit", getProductUnit())
            .append("productPrice", getProductPrice())
            .append("taxRate", getTaxRate())
            .append("taxAmout", getTaxAmout())
            .append("remark", getRemark())
            .toString();
    }
}
